HW2-2: gathering the rating list from the database
HW2-2: filtering with checkboxes and cleanup on selecting and sorting
HW2-2: keeping the filter when sorting and keeping the checkboxes properly selected