Modify query.php for cleaner output