replaced all PouchDB querys with allDocs to increase speed (hopefully)
not tested yet!