chore(relationships): Move SQL logic into OO service
Merge pull request #7454 from ewinslow/oo-relationships-table

chore(relationships): Move SQL logic into OO service