Compile the contents of a leveldb read stream into an object and create a patch for changes as a batch update