updated the database connection