added new update method in SessionRepository for update session