License table trigger for auto calculating RegNumber