Check for existing index first before altering table