no need to drop the pan.to remove it,you remove the heat shield and then on the top of the plug that is facing you,you press inwards.this will release the lock tab.while pressing inwards with one hand,you want to be be wiggling and pulling upwards with the other hand.
normally you never want to use a screw driver because you'll break it.since your replacing it,it doesn't matter.though a screwdriver wont help anyway when you release and pull it correctly.
now,if by chance your trying to remove the whole solenoid pack,either to gain better access to clean up the pins down inside and or to replace it.then you remove the pan,the nuts and the bolts holding the pack in place,and then with the electrical connector already unhooked as mentioned above,then you just wiggle and pull while pressing downwards on the female connector to break the o-ring free.when doing this,don't be nervous.it's just an o-ring.own it and pop it out.