search word in db