openDatabase
Use openDatabase function
New methods in HDKeychain to support flexible hierarchy, InvalidHDKeychainException for extremely rare case.