Fix 'unbound variable' error for QUERY.
Combine everything into 1 script.
Print a status msg if $QUERY not found.
Add some nice comment section headers.
Add dependency checker for `curl`.
Old changes. ???