How should I go about structuring my express/mongoose application, so that I can use my schemas, models, routes and the functions that get called when those routes are hit?
In your application structure you have mixed the database logic with the express route handling and passing the express application variable to model. I would avoid the mixing these two together, also you could take a look at this structure https://gist.github.com/fwielstra/1025038.