Now generates corresponding SQL table declarations

This assumes there are no cycles in the relationship graph though. That'll have to be fixed later.