add search method for wordDB