programmatically create data and insert