Making a general class for index creation / deletion / migration