First things first, if your database has IP address / networking security, you'll need to whitelist our IP address:
Follow the links below on how to connect your database:
Set up the Integration
Click on "Integrations" in the left sidebar then "Add integration"
Selecting a Primary Data Source
After adding a database integration you can also set it to be your team's default data source.