opening new session to save query results