add search method and simple database