Fixed historydb depencies.