While implementing Query Tool, we need the affected row count for the queries (DELETE, SELECT, UPDATE etc..) executed on the database server. I have implemented the same. Attached is the patch file, please review it and let me know the review comments if any.