finishing TSQLRecordHistory process for [a78ffe992b]
includes dedicated regression tests, and some optimizations: feature sounds almost complete!