Finished the class which creates a working mongoDB and pushes it to the localhost