new pouchdb fixes promise issues in sync
handle online/offline seamlessly