backend functionality for user's relationships