still trying to wrap my head around pouchdb