Fixed database update to new version