Fix edit and update actions for log/plan so that new records are not created and the current records are updated.