fix ddl scripts