java/db: Few changes in the device object.