Update collect statistic according to new db design
Revert changes in db file