Bunch of account history fixes

Switch to proper tables while referencing

Merge request reports

Loading