added handling of foreign keys - untested
more work on creating column definitions - constraints

only unique and foreign key constraints exist for the moment
Major progress unique and foreign key handling still to be implemented.