Set up a new connection from the "Connections" tab on the Data page. Press the "Add connection" button, select the type of the database, and answer the config and auth questions. Connection details are encrypted at rest. Name it something meaningful; you'll be using this name to refer to your data connection elsewhere in your code.