Refactoring SQL executor

added methods PMA_executeQueryAndSendResponse and PMA_sendResponse