Change sql() function.