Fixing database download loops.