Fixed dao record retrieval