Relation Tables

Started writing code to fill relationship tables