done transition to firebase from pouchdb