modified querySeat.php