[OE-3987] script to verify foreign key relationships