refactoring: GetDbContext inline, allows to create unit test with mock database operations