In that case the database is the PII, not the IP.
and Person B has a document saying an 80 year old male living at 1600 Pennsylvania Avenue has Chlamydia
do you think only Person A holds private information?
Is the password personal data?
You have to draw the line of correlation difficultly somewhere.
https://commission.europa.eu/law/law-topic/data-protection/r...