Added update function to create relation into library groups
Updated OG reference field