Speed Up Search

Storing the term frequency in DB speeds up the search significantly.  Results are changed though, need to investigate.  Fixes #1