adding postgres xml tpl