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