Anyone may be charged (accused). However, you may have a defense to the dui that you were not driving or that you were not under the influence of alcohol.
Whether the police violated the law when they arrested you and searched your car is a legal question for a judge. You could assert that the police lacked probable cause, and the judge would have to decide based on the totality of the circumstances whether the police acted reasonably. This is very fact specific, and the outcome also depends on who the judge is when your case goes to court. For confidentiality reasons I recommend that you not post additional facts on line. Instead, consult privately with a lawyer.
I offer a free initial consultation that is confidential. I would evaluate your case, inform you what can be done, and let you know how to retain me.