Update btcd for btcdb API change.

Rearrange code to pull out last tx as was previously expected.