updated populate script that adds new rating values, updates number of votes and calculates the new average for each rated course