Remove duplicate code

Thanks for your [blog post](http://www.frontendjournal.com/crud-webservice-for-your-json-data-in-node-js-and-rethinkdb/) and this repo.  They inspired me to look into RethinkDB.  I've just removed a bit of duplicate code.