jliew
committed
on 10 Mar 09
fix problems with foreign key references referencing wrong tables