issue #8: add test
issue #8: re-implement format for create table/view
issue #8: re-implement format for create index
issue #8: re-implement format for alter table