added primary key to joins tables