Update segment add and edit to account for new segment_data table