To be able to connect to an external database you need to specify settings for the database. This is done in the Database tab of the preferences window, accessed by selecting File | Preferences.
This window have four settings:
After the settings are properly filled in you must press the Apply and test button to make sure the connection works.