how to get a mongo db database code example Example: how to get current database mongodb db.getName()