Added test sqls to test drop primary key constraints
Added writer to each parser to control output
Added a lot of functional tests. Fixed bugs.