Tests are passing for many to many relationships and bugfixing

-Fixed a bug where a composited primary key threw an exception while
inserting a new row.