Add template.sql file for automatic R table creation