Refactoring SQL executor

replaced include 'sql.php' from db_qbe.php and tbl_structure.php with function calls to sql.lib.php