An experimental fix of possible File I/O exception and less frequent DB scanning

Nevertheless, don't occupy Quantity.md with any process other than VS
itself to minimize the chance of error.