Why doesn’t db.collection() in my Node.js-MongoDB function run at the correct time? I have the following code using a MongoClient getting called twice: