move get_relationships function to sacrud