Grounding a socket is more than just swapping the receptacle: the ground wire needs to be routed from the service panel or a suitable junction box.
Just wondering for my case, my house (really old) didnt have any 3rd connector, what i did was to my worker did was to burry a copper stick underground 15ft and cable it to the socket, im not sure if that good... but the UPS and power conditioner see is it as ok on their displays. Im about to move to another old house that will not have it either, so just wondering if this was alright or should i do something different this time.
That is a correct way of earthing your typical household electrical system, grounding via a rod or pole. The basic principle really is no more than making sure the circuit can connect to the Earth.
The difference between professional earthing and DIY earthing is the grade of the result: self-installations can be a fire hazard because people don't know what gauge of wire to use (too thin and it overheats, burning through insulation and more), how to insulate properly (risks shock and short circuiting, corrosion), and how to connect, terminate and route everything safely. DIYers may also neglect sufficient measurements and testing that would ensure the system works properly (especially important when grounding more than one socket, or grounding a socket in a system that already has ground-connected sockets). You can get functional
results with DIY, but only a professional can verify if the installation is safe
- and you are fully responsible for any DIY installations made, meaning potentially no insurance in case of damages and probably a court case if someone gets hurt or dies.
The real dirty tricks are things like using a jump wire to connect the grounding pin to the "cold" AC wire and drawing a clamp and cable to a water pipe or radiator. These have very obvious risks - you don't want to mess with the proper electrical circuitry in your house (though the first one can be used to wire a TN-C system with a PEN wire, where Neutral or "cold" and Protective Earth or ground share the wire), and connecting power spike energy into ANY household object is a questionable practice at best.
Sorry this got a bit long, so in short: Yes, a ground rod is the way to go, but there are a lot of factors in the installation and a lot of responsibility thereafter.