move database setup (mongodb) out of db route (http endpoint)
use a mapping for handlers, schemas, and routes
rename some variables
Merge pull request #340 from smoratinos/master

server refactor db routes