def add_database_name(db, name):
    'Add database name to datasets'
    for ds in db:
        ds['database'] = name
    return db
Add database name to datasets
def add_database_name(db, name):
    
    for ds in db:
        ds['database'] = name
    return db