Adding define and associated templates to backup postgres