Collection script fixes

scripts needed to push data from legacy ZODB into the postgesql DB.