Script to check FOREIGN KEYs and UNIQUEs

Sometimes, due to whatever circumstances (faulty hw, space rays, pg bugs)
constraints can be violated in silent way. This script checks if they are
in fact, fully OK.