Clean up `app.js` and `package.json`

* Remove unused `mongodb` dependency.
* Reindent files.
* Remove dead code.
* Format files.