track last query