Create rating.php

Back-end service to complement the client side js