I was able to fix this, but this is not something I recommend doing on a machine without a backup.
I basicly opened the SQlite DB file and start digging for all references to the bad machine (id=11), and start removing them or editing them as needed.
eventually I run onedb fsck -s one.db
to fix the DB and it found some problems, and solved them for me.
this is how I recovered from this bad upgrade