Edits to make pipeline_rerna and Pipeline::set_job_tag_data still work when the JobDB is not available by printing mysql statements to a file in the proc directory.