Add txid to name database.

This is required for name_show (to be fully compatible with namecoind)
and for name_update (to look up the previous tx without requiring to
sieve through the wallet).