Begun to write insert and update sql scripts

**Summary:** The insert sql script has been finished. The update sql script has not yet been fully tested.