update first query