A first working version of the PouchDB wrapper