Added "ensure_index" functio nto mongo_connector