more db work and some fixes
added synchronization step when a node dies
bug fixes
more bug fixes/it compiles
Merge pull request #1 from xekoukou/db

sync_step when a node dies + db first commits