Converted the joblist to an SQL insert statement.