updated data gen to add to db