update to work with latest pouchdb and remove hard-coded meta-data key