Added FSM to DB, moved pg definition to app.js