postgresql7.1 insert into survey_variables (variable_id, variable_name) values (:variable_id, :variable_name) insert into survey_variables_surveys_map (variable_id, section_id) values (:variable_id, :section_id) insert into survey_logic_surveys_map (logic_id, section_id) values (:logic_id, :section_id)