Add average rating calculation for a book