Get tables from template
Insert table into template
Remove temp file from template if save() not called