save queries in session