change for dbhNeedsCommit in setForeignKeys