made the get_relations() function available application-wide, and made set_relations an instance method of Entry.