Update type to device_type on devices table