Configuring the connection to the database