db work
wired up events
processEvent' is finished, use System.Cmd to out state