updates to databse connection