added condition to copy template to public when newsletter is sent to actual database