Minor modifications to BaseDAO.