update database connection