No longer saves keypool in walletdb. Map non-HD keys to HD keys.