finish the basicQuery in Dao.java