Upgraded q, rethink and restify
Refactoring how the db api is exposed