using velocity engine to generate sql based on template file