integrates pouchDB closes #5