Moved JPQL queries for MessageRecords from DPU facade to DAO.