defines a function named printAllData with argument cb and does something as indicated inside the curly bracket.

Three functions are provided in this module, saveData, printAllData and closeMongo. We will grab our previous code and call the functions from this module. We would like to modify the index.js file to make it look like the following.