Add trigger document before insert