Table creation SQL

This commit contains table creation SQL for this project. Thanks to
rcarlier for highlighting this issue.