Fixes: #1922 Handling foreignKeys for ogroups
Fixes: #1922 Removing old code doing foreign key job