Get the inserts working right when we need to overwrite existing data
Have both reading and writing working for unit test, small tweaks still needed