Corrected a SQL for inserting subjobs.