Add uuidToID in migration, closes item:765