Hook up ratings

This hooks up the ratings click to the databse, so each of the ratings is saved to the db instantly.