Implemented first query method in DAO