feat(db): move history logic to archivist service

Merge request reports