Small fixups while learning ZODB

While learning ZODB I've found a couple of scripts that were not working. The fixes are here.

Please apply and thanks beforehand,
Kirill
Because it is not used as a global, a cleaner fix would be to move the 'VERBOSE = 0' assignment into the 'main()' function.