code to create insert statements