def METHOD_NAME(relation: ActivityDownstreamRelation, catalog, cache):
    """Dump relation entry to database."""
    btree = project_context.database["_downstream_relations"]
    btree[relation.id] = relation
    return relation.id