Technology companies have databases that document people's ethnicity, religion and other personal information on a massive scale.