Use the clearFlag() method from LicensedVideoSwapHelper here rather than writing your own SQL:

    $helper = new LicensedVideoSwapHelper();
    $helper->clearFlag( $page_id, $helper::STATUS_SWAPPABLE );