Thanks, good story ... in the end you did the right thing, but make no mistake these situations can be horribly difficult. The best scenario is if you're not really dependent on them and you're in a position where you can just walk out telling them "you're asking me something unethical, so I quit" (which is what you did). But it takes time to muster the courage, no question about it, it's easier said than done.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.