ALTER TABLE email_sablon
   ADD COLUMN level_targya character varying(150);
   
ALTER TABLE email_sablon
   ADD COLUMN automata_levelkapcsolat smallint DEFAULT 0;
UPDATE email_sablon SET automata_levelkapcsolat = 0;

ALTER TABLE email_sablon ADD COLUMN felado_email character varying(150);
ALTER TABLE email_sablon ADD COLUMN felado_nev character varying(150);
ALTER TABLE email_sablon ADD COLUMN masolat_email character varying(150);

UPDATE tulajdonos SET modul = SUBSTRING(SUBSTRING(modul||repeat(' ', 1110) FROM 1 for -1+18)||'0'||SUBSTRING(modul||repeat(' ', 1110) FROM 1+18 for 999)  FROM 1 for 200);