Connect flattened tables