breeze & db context refactoring