The most effective way to prevent a DUI conviction is to never get arrested. Rule #1 is the best way to avoid this from happening: "Do not drink too much and then drive."
In the unfortunate situation in which you have, Rule #2 will follow shortly.