Refactor the JSON output of onload/search processor.
Re-arrange code elements to group like items.   Prepare code structure for another refactor on the MySQL statements.
Commentary.
Refactor AJAX on load to use new execute MySQL method.
Refactor search processor to use executed_sql query method.
Refactor the execute_LocationQuery to drop identical call params, set in method instead.
Drop some unused vars.
Commentary.
Almost put query reporting in wrong place... actually DID do that... then undid that because it was wrong.   So very wrong.
Refactor the tagfilter and namefilter options on execute query.
Refactor the on load and search based AJAX processor for consistency.