corrected defects in the DAOFactory