Support for foreign keys in creating tables
Tests + fixes for attributesToSQL
Basic implementation of capturing foreign key status
Tidy up setting of new attributes
Topologically sorted iterator for DAOs taking dependencies into account
Create tables in dependency order
Support for dropping tables with constraints
Skeletal test