read -p "Please enter the id for the destination template folder on the destination server for the copied templates: " FOLDER
read -d '' SQL <<EOF
-select 'import into reporter.template (owner, name, description, data, folder) values ($OWNER, ''' || name || ''', ''' || description || ''', ''' || data || ''', $FOLDER);'
+select 'insert into reporter.template (owner, name, description, data, folder) values ($OWNER, ''' || name || ''', ''' || description || ''', ''' || data || ''', $FOLDER);'
from reporter.template
where id in ($TEMPLATES);
EOF