Save data when the user load a old query