Support jobs in the far future

As an aside, looks like there will be problems if the number of errors is greater than 2 billion. Hopefully that's never a problem for anyone, that's a lot of errors...  but possibly the `error_count::int`s in this file should be all bigints? If you have 2 billion jobs and each has an error, the job_stats query will fail.