'Ensures the proper fields are indexed'

def _create_indexes(self):

    self.collection.ensure_index([('time', pymongo.DESCENDING)], background=True)
    self.collection.ensure_index('event_type', background=True)
