Update script: add avg rating, overwrite all script with objectes