added basic linking sets to ORM. Code needs major refactoring!