Changed the first parameter passed into the up and down functions supplied by migration files to be an object called dbContext that passes the full mongodb instance as well as the database object. This allows the requires statement to be left off of the migration template and removes the need to have mongodb installed in the migrations folder. As such I also changed the template and removed the code for installing mongodb to the migration folder on create when not already present.