Make sure session is persisted. Make sure I'm using query correctly