some changes in the way we connect to the DB