go to the immigration office next to the airport (departure terminal). you should be able to extend for another month there. after that, most likely you have to leave Qatar to get a new tourist visa.