fixed Dao reordering bug
added sqlite3 example
now saving mode state