postgresql7.1 select survey__new ( :survey_id, :name, :description, :description_html_p, 'f', 't', 'f', 't', :type, :display_type, :package_id, :user_id, :package_id ) select survey_section__new ( :section_id, :survey_id, :name, :description, :description_html_p, :user_id, :package_id ) insert into survey_logic (logic_id, logic) values (:logic_id, :logic)