update entity + model + add Dependency Injection