Remove SearchDBHandler and fix TermFrequency problem