Database password lookup works

Had to figure out that I was actually hashing the arrays coming from query(). Once I stopped doing that things worked.