Error correction: moving the update of the downloads database to the PieceOfFile thread.