add insert script and update dao