add session to query