added attribute 'after' to get ability to update statistic of only last few days