renamed GET_PASSWORD_QRY to GET_PHOTO_QRY