def METHOD_NAME(table: Table, metadata: OpenMetadata) -> str:
    """get database name from database service
    Args:
        table (Table): table entity
        metadata (OpenMetadata): metadata connection to OM server instance
    Returns:
        str
    """
    database: Database = metadata.get_by_id(
        entity=Database, entity_id=table.database.id
    )
    return str(database.name.__root__)