Update query for create unpair