Add mode_transitions table, and add data that gets filled into state_transitions and mode_transitions.