Implementation of createIndex (recreate _id index in case of a failure event)