The librarians I know are adamant about keeping private the records of what patrons have checked out or searched. I don’t know the history you refer to, where library records were used to identify certain sections of society. Where can I read more about that?