debug message for number of deleted row when processing data from server
added a method toSql to get a string representation of the Select