I just tested the ModuleCreator and it seems to have some trouble with foreign keys. If you use foreign keys they are added up, i.e. if you have more than one table you will get lots of foreign keys that should not be there for the last table. There is probably a variable that is not reset somewhere.
I haven't had time to check the code for the error, just added this so it doesn't get lost.
Edit:
Can't test from this computer but at a guess it is line 386-396 of ModuelCreator_0.php, the contraints variable should be reset to '' just outside the inner foreach, i.e. line 391.
Edit2:
Patch seems to fix it, at least for a simple test.