Update device_id to be device_uuid for device sync entries and link to device through fk