issue #20154: Tweak user role sql because now it has an obj id.
issue #20154: Correct toMany relations on account and contact for incident.
issue #20154: Fix opportunity relations.