script to generate inserts