Adds linking relationships for flags, likes and dislikes