A security gap on the website of the Republican Party of Iowa left exposed personal information on roughly 2 million people, including names, phone numbers and voting records.

The database, which was removed from IowaGOP.org after an inquiry by The Wall Street Journal, included information on Republicans, Democrats and independents that are registered to vote in the state. The records include birth dates, addresses and party affiliations.

The voting records don’t say who a person voted for, just whether or not they voted. It includes presidential primary and general election records, as well as state, local and school board elections dating back decades.

The database, which is a collection of public records, can be purchased from the Iowa Secretary of State, typically for $1,500 to $1,800. Buyers must promise to only use the information for political purposes.

Kevin Hall, a spokesman for the Iowa Secretary of State, said the posting was clearly accidental. “It is a violation of the law for the list to be used for something other than political purpose or bona fide political research, but that doesn’t appear that’s what [the Republican Party of Iowa] was doing,” he said.