Fixed a bug in the data generator. It was causing duplicate sql inserts