Rename database to Database, make it readonly
Refactored KontrahentController to use service
Extracted CrudBaseController