edit now saves to the db