fixes and verification for the schema-update script