RethinkDB RESTful handler