whole bunch of updates here.
first, created run_query and put the process of debug/prepare/execute into it.
much simpler and cleaner!
added RETURN_JOBFILE cmd and stub for JOBFILE_SENT.
add a check to set_job_status to see if we're marking a job as finished.
if so, it needs to do some more work. that part isn't coded yet.