Add compound foreign key/multicolumn foreign key support in script databases (complements commit 7a6cb086a0756abf36ea8ffdfc8215d87ff166a8)