@Pa**
, sorry but you're confusing the computer system at passport control with the lack of computers at thai consulates
When you stamp in to thailand that system matches by, country of origin, DOB, Sex, Age, Surname etc not just a passport number.
They can see your entire entry/exit history going back as far as they want.