Connecting tables

REALLY ugly, but it's working