initializer list for sqlitedb and removed unnecessary+unsafe sqlite db close code from destructor.
used astyle cmd to auto-format everything.  It works nicely.