Add ddl for all tables to codegen

fixes #581 
review by @szeiger