Bugfix in MainDB code that was preventing past db updates from happening.