Bugfix: missing statement to break out of loop in do_query

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