Refactoring SQL executor

Avoid using of global variables.
New method PMA_getHtmlForConfirmPage added to sql.lib.php