Create ddl.sql

This is the current state of the database definition language.  I am sure there are optimizations and cleanup that could be done if we have time.