edit saves to db properly for unit now