Fixed index of password in database dict

ref #263 in https://github.com/opps/opps/issues/263