Updated the database connection.