Fixing NPE when jobID is not found, Fixing integrity violation DataTables for the new schema