Store last queries