Save statistic to database