I have the following code where I retrieve some arbitrary data from MongoDB using a cursor, and apply updates to them: