update to database connection