One more thought, though I feel bad for tacking on this many messages at once: Could it be that the tables are getting generated properly, but the relations aren't? I'll look up how to use Postgres a little better and find out what's in the database.
-Mike

