separate template engines from SqlTemplate