What a mess PouchDB :(