update connection to database