Now properly handling not being able to connect to db.
Now handling missing parameters in POST /rate
Updated comments in rate.js.