Added getter and setter for Id

Will be used to facilitate the join table
Altered insertobject, added insertjoin

insertobject now sets the id of an object when it's inserted
Insert join will insert to the join table the ids of the two objects
passed in
Corrected test

Corrected test to look for the right error
Added an actual table for the join