Fix: GetDeviceGroup wrong mask in db