Deletes useless flags & switches. Changes flags on edit & delete to id instead of date.