Fixing improperly named unique restriction in schema
More work converting to amalgamated database design

Mostly bug fixing
A new extended-table system has been added to the record class which
allows applications to extend framework tables with sub-tables.