== How to fix it

Either use a GUID or the auto generated ID as a primary key.