rough out the command pattern memento objects and javadocs from the succinct pouchdb api page.  credit is due for pouchdb blazing trails.