MongoDatabase method createIndex corrected.