Made the search method for Room