When adding items to a cross ref table it doesn't take the connection in...

I was not able to write a unit test because I don't know where the connections are tested in this case.

It will fix the situation where you add objects to a table that has a cross ref table in between. 
Because the connection was not passed to the function it falls back to the default connection.