Updating database connection