code: function fromRawDoc(pouchDoc) {
      var obj = pouchDoc.data;
      obj.id = deserialize(pouchDoc._id);
      obj.rev = pouchDoc._rev;
      if (pouchDoc._attachments) {
        obj.attachments = pouchDoc._attachments;
      }
      return obj;
    }
docs: Transform a PouchDB doc into a relational object.