getting the db connected