Fix job name truncation

Add length constraints to some of the reference and job data. This is not a comprehensive guard against any column size violation but should prevent some of the more common ones.