Replaced depricated method ensureIndex with createIndex (MongoDB)

MongoCollection::ensureIndex() has been depricated.
http://be2.php.net/manual/en/mongocollection.ensureindex.php