[statistic] fixed statistics for ddb (WIP)