Updated state transistion table to have each transistion defined in DB for each state rather than using JSON