[Fix] rating and rating count were not being recorded to the DB