Dynamically fetch the mean rating value from the database in single-, list- and search views.