Save last query data