wip(history): revert back to insert+update using PK
wip(history): feature complete with insert+update(PK)