 the <a href="https://en.wikipedia.org/wiki/Create,_read,_update_and_delete">CRUD operation names</a>, but any of those is fairly common for the method names (just keep them consistent):</p>
<ul>
<li>get(): read, retrieve, all, list, select</li>
<li>post(): create, add, insert</li>
<li>put(): edit, update, change, modify</li>
<li>del(): delete, remove, destroy</li>
</ul>
<h2 id="database">Database</h2>
<p>We are using Mongoose (a layer on top of MongoDB) to implement database access. For this, we first have