use a query to find update_seq instead of manually tracking it