'Get a list of the names of all databases on the connected server.'

def database_names(self):

    return [db['name'] for db in self._database_default_options('admin').command(SON([('listDatabases', 1), ('nameOnly', True)]))['databases']]
