Split CHistoryTest::setUp() to setUpHisotoryDB() and setSQLHistory().