Convert old schema to new schema for machines and materials. The
materials table is no longer used, instead we use the samples table.
Fix syntax error in template json.
Look for Supplier attribute and add it in.