Add a table for tracking the history of job states.
Ensure all job state changes will be added to the history state table.