Relationship Type now taken from database

The Relationship Type is now pulled from the database. The correct type
is also selected when you edit a Relationship.