add search method, the DAO layer is done.