Fix JobHistory

* add column project_name
* create job histories in job_updater, not in SM callback