story states and transitions in the DB