reformat robust.sql_in to new template