Bugfix: Database completely replaced by latest item