23 db performance

Was able to reduce VPT queries to 2 from 7.
23 db performance

- search fixes
23 db performance

- more bug fixes
23 db performance - added var
23 make categories var public
Merge pull request #80 from deanearlbartolabac/23dbperformance

23dbperformance - merge to master