As for that fickle switch....ditch it!
Just hard wire your battery directly to your pump, so when the battery is plugged in the pump runs.
This is soo simple its silly!!!

All this talk of the switch turning on and off by itself, corroded switches and all.
Thanks Scallywag