New to MongoDB - useNewUrlParser,client.db()

You can check the mongoosejs docs, useNewUrlParser Option for a brief explanation.

MongoClient

useNewUrlParser | boolean | false | optional

Determines whether or not to use the new url parser. Enables the new, spec-compliant, url parser shipped in the core driver. This url parser fixes a number of problems with the original parser, and aims to outright replace that parser in the near future.