refactor: use DBProvider
in HistoricalStateProvider
#12556
+96
−162
Merged