@Adr***
there is no 30 day tourist visa :O That stamp is a 30 day visa exempt entry stamp. Meaning you showed up here without having bought a visa from a thai consulate before hand and were stamped in for free for 30 days.
You can go to the immigration office and get a 30 day extension on that stamp for 1900baht.