insert script, refactor create script and dto