upate the db connection