A WalletHub study says Raleigh is the second best state capital in the country to live for a number of reasons.