populate xml from template with SQL