Statistic chart

add statistic & modify the database