added timestamp to last query