Solve collection name problem in ensureIndex