cleaning up code a bit
Explicitly connect to the RethinkDB instance in the API endpoint since it skips application controller before filters.