updated to support table creation and relationships.