fixed some DAO methods