Update main.queries.php