changed the repo so that it should be used in a "using" statement and will deal with the session object.