restructure sqlalchemy_fsm