Improved the table job_stats
Merge pull request #1306 from gem/improve-job_stats

Improve the table job_stats