Changes the formatting to pass phpcs
Changes the file to be json compliant
Fixes a type
Speeds up the inserts

Doesn't flush after each persist now, has them batched up to work
faster. Can do 6200 inserts in ~1 minute