Added "trigger" to generate a valid userdef_id when inserting a new delivery.
TODDO: To be made a high order function to be applied to any entity together
with triggers for genereting creation date, created by, modified by, modified
date.