Adding SQL arguments back into SQL string

Had to modify the SQL Arguments table to store the index of the SQL arg
as they were getting mixed up.
This made it impossible to put them back into the SQL string for display
on the individual SQL statement page.