Configuring a connection to the database