ensureIndex is deprecated