Saves rating (1-5) of 'id' in MySQL database
input: id, stars
output: html success or fail, new total votes