editing search and trying to get categories to pull from db