It depends on how the project was set up. There are a few options:
1. SQLite DB
2. SQL server DB
3. Collaboration Project DB
Each will have its own method to access the DB. SQLite DBs are contained in the .dcf files of the project. SQL server project DBs will be located on the corresponding SQL server. Collaboration Project DBs are located in the ACC cloud environment.