printing the fetched data from mongo to the console