how to get the actual database in mongodb code example Example: how to get current database mongodb db.getName()