add a snapshot to data

@param {DataSnapshot} snapshot
@return {Promise}
function add(snapshot) {
    return Promise
      .resolve(mapFn(snapshot))
      .then(function(val) {
        data[snapshot.key()] = val;
      });
  }