Added getLogFromDB and saveLogToDB methods that should properly json stringify/parse data to/from localstorage.
Added getLogFromDB and saveLogToDB methods that should properly json stringify/parse data to/from localstorage.  Fixed merge conflict.