move if_not_exists option handling to Inserter class