First creation of output tables.
Fixed missing commas in sql ddl.