Patch from Richard Bollinger for dead entries being left in connections tdb.