Using swiq as a templating engine to handle sql queries