Bug fixes thanks to Simon Knight, changed session_stages table schema
Stage moveToNextStage working
Added stage test