You made a mistake by consenting to the search of your vehicle. I wouldn’t talk to the detective or any police. Instead, hire an attorney.
Correct. The police do not exist to clear you of crimes. They exist to arrest you, guilty or innocent. NEVER SPEAK TO A COP, EVER, ABOUT ANYTHING. Get an attorney to do all your talking for you.