26 Apr 2016 You are always reading the whole username/password list! You have forgotten a WHERE clause in : SELECT UserID, UserPwd FROM .