Replaced depricated method ensureIndex with createIndex

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