Fixed index of password in database dict

ref #263 in https://github.com/opps/opps/issues/263
Merge pull request #2 from hmleal/master

Fixed index of password in database dict