how to update isstarred

how to update isstarred

  

Hi friends,

                  when i click heartt symbol of a club it turns true but when i click same clubs heart symbol it turns false by inserting a new record instead of updating the excisting true.see the screenshot below.I Have Attached my module for your reference


Which heart symbol you are talking about? Please highlight and provide more explanation.