Added a custom repository for the device entity