Updating database connection.