store original event ids in build events

remove global primary key

[#80512764]
when tracking a build's events, start from last id

[#80512764]