Added offline storage with pouchdb