Tidy up vars and add comment to PUT code
Remove unused mongodb dependency

We're now using mongoose as our mongo ORM, so we don't need/want direct
access to the db.