De-couple database connection and models (Mongoose) from Express application. Pass database object to application in server file.