Add retention of initial queries

We need to remember the initial queries in order to reinit them when we click on the reset button of the stringquery panel.