Added rating field to be saved in database