I was recently introduced to MongoDB and going through the installation guide I came to know that we have to first run the daemon (mongod) and then we have to connect to the