Fixed bad insert code
Fixed bad response in record_job