Set UsersRepository with non-static methods and added UnitsRepository and UnitsController