Adding set option for insert or update logic