Fix bug in database update file