Keep list of search terms which would return a large number of results.
When such a term is entered, only search on the first column of highest
priority to reduce the number of results.

Add some more debugging output and error handling.