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 cast to int's in this file should be all bigints?