Session Dao refactoring