updating parser function outputFATES.php

introducing global variable $StatsCommand (do, undo, ignore) with do and
undo having matching queries.  $StatsCommand is currently set by hand in
this file but that will change soon.