swapping out local storage for PouchDB