#1261: Fix files that have been moved but didn't get saved in db properly.