Create all the indexes on the collections for a given dataset
@param {String} datasetId
function ensureIndexesForDataset(datasetId) {
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'uid': 1}, {});
  createIndexForCollection(getDatasetRecordsCollectionName(datasetId), {'refs': 1}, {});
  createIndexForCollection(require('./sync-updates').getDatasetUpdatesCollectionName(datasetId), {'cuid': 1, 'hash': 1}, {});
}