How do I use a database in a custom theme?

I’m new to WordPress but am creating a custom theme. I don’t know much php, but need to store information such as emails, as well as some custom info such as volunteer hours (for specific duties). The email will be stored for a newsletter. What is the easiest way to store this data? Can I use a plugin (despite creating a custom theme?)