changed sql training/tuning data to general form