total rating,total viewrs and user count are calculated  and stored