Update dialog.cpp

no need to use to password manager.setdatabasename unless you have more than one sources for db
Merge pull request #1 from tachyons/patch-1

Update dialog.cpp
After DB solution

DB connection resolved
HASH KEY Generate

refer : newaccount.cpp
further DB related codes
Merge pull request #1 from sreecodeslayer/master

vuh