You are not even mentioning what database type you would like to access.
If you just need any, then have a look at LiteSQL - easy to use and first few results already talks about C++. However this one is typically locally stored.
Maybe you want a more typical network-accessed database like MSSQL or MySQL?
If you specify this in your own Google searches, I think you will have much more success in finding a good library for implementation. But if you are a beginner to C++, you will learn MySQL implementation can be a little challenging.
Good luck.