Trigger in postgresql to change incoming entry