Update the inventory script to follow the new variabledata schema.  This is untested and may need revisions.