Generate sql insert scripts