added searchdb cache, fixed search