Use one statement for adding the routing to the app.
The setup_db method is for rethinkdb only.
Move the database setup to the database object.
Move the "db" reference inside of the database object.
Stop referencing a global config db object everywhere.
Bring the setup within the database object.