Bugfixes on auto database update system