Make insertSelect() do two separate queries in non-CLI mode