Finally fixed the createConnection problem. Changed xxMongoose.model reference
to the appropriate db.model in route/races.js
Moved the Races DB and Models into a racemodel.js file in a new models folder