modify find_keyword, find_category to not use where clause