How Can I create a database to store a large text that I pull from in the App?

So I have an App which is basically like a book with around 50-ish pages, The thing about this book is that it's basically a list of topics (So like: 1 - talks about topic one 2 - talks about topic 2, and so and and so forth). I want to figure it if its possible to store all the text in a database or file of some sort and pull only the text from the topic the user wants: so like I would have a dropdown of all the topics listed and when you press the topic you want it will pull up the text only from that topic. Is this possible? I'm open to using extensions if necessary.

the file to be stored on local or cloud?