Added partnerIds table, connection and tests. Seems to work.