added some performance tweaks to db recording
fixed bug where extraction didn't preserve tracked status