add session factory
upgrade spring
simplification
major refactor