scan_data function

Thoroughly scan a table to better understand it