Update stastics function for each user