replaced the usage of PouchDB.query function with PouchDB.list, in order to avoid authentication problems (and performance issues) with temporary views