Add ratings

Now ratings bind to user clicks on stars, and are saved to the database.