Changed deleteVisit in dbService so that it deletes more effectively