Adding Session and refactoring ActiveDb