Add new FSM class and improved updae.
Add also SQLITE