Bugfix: missing statement to break out of loop in do_query when no
results are found

Added more search logging
Merge pull request #9 from keithj/devel

Bugfix: missing statement to break out of loop in do_query