[fix] fixed ddl and insert scripts