Adding query session