Implemented loading and storing of relations