Background thread support with ZODB support