json dump stuff
changing database serialization to use protobuf