Refactoring SQL executor

extracted method PMA_sendResponseForResultsReturned