Fixed a bug in DB initialization and removed unneeded method Vew#each_entry