Extracting even a small slice of a database can land you in hot water—especially if you get caught by clever technical traps.