wip(history): feature complete with insert+update(PK)