Data retrieval and the legal system