Re-use temporary trace object

Big speed up and less leaky when we aren't creating new temporary dbs
for every record.
Merge Geoff's singletr logic into segd2db.xpy