Adding in support for loading in the SQL Store collections of things which map to JSONPrimitive.
Wrapping save in a transaction for great preformance
small refactor to avoid duplication
Fixing a bug where booleans were not saved properly