def METHOD_NAME(_db, library):
    config = Configuration.integration('Overdrive')
    if not config:
        print("No Overdrive configuration, not creating a Collection for it.")
        return
    print("Creating Collection object for Overdrive collection.")
    username = config.get('client_key')
    password = config.get('client_secret')
    library_id = config.get('library_id')
    website_id = config.get('website_id')
    collection, ignore = get_one_or_create(
        _db, Collection,
        protocol=Collection.OVERDRIVE,
        name="Overdrive"
    )
    library.collections.append(collection)
    collection.external_integration.username = username
    collection.external_integration.password = password
    collection.external_account_id = library_id
    collection.external_integration.set_setting("website_id", website_id)