works, basically. need more tests
documented toJSON
0.0.1
restore xtuple db before unit test