Update URL query string with query id when a query has been saved