Bugfixes on update database files