how to connect an app to a database for back-end purpose/usage

please i will like to make a warehouse app ans will like to connect my app to a database. please i will need help with that. thank you

I would say that the best approach (or at least most widely used) is to write a web-service that expose the data/methods you need. And then you connect to that web-service from your mobile application.