prefer const string& over char* in CDB and CWalletDB constructor

2nd commit:
cleanup class private and public areas in walletdb