handling multiple rowsets in mysql, and removing the duplication of result sets in mysql due to the handling of beginrowset and beginquery in the same way