Migrate the votingpool pkg to use walletdb APIs