Added a bunch more to the check_all_jobs function, and began working on run_sql_query.