new pouchdb with memory leak fix