update pouchtovar to new pouchDB EventEmitter functions