Thanks for this - was really helpful. A quick question though - when you say add the UUID, I believe you don't mean the device UUID since each record needs it's own unique UUID ?
So is this something you just randomly generate or is there some format to this ?