couchapp, but using pouchDB