RemoveResourceRelation action depends on database id

Issue #2602 open