using statecharts concepts to build a simple declarative react router
creates and manages a pg database
helpers for menugen