Added getRelationRef, we may want to discuess this. Also more error messages

Without returning a reference, it wasn't really possible (tmk)
to do db.getRelation(0).addTuple(tuple). Now one can
db.getRelationRef(0)->addTuple(tuple) and actually modify the relation
within the database. This may require more bookkeeping/smart on our part.