Created function to retrieve category and moods links in profiles