Better data updating mechanism

Implemented a better data updating mechanism. The home page is
shown only when the data are loaded. The updates table containing
hash codes used as version numbers is updated only when everything
else has been written to the local storage. This makes the
updating of the data atomic.