fixed queries.php