add freemarker support in dynamic sql