Orbisgis trigger optimize

This optimisation on trigger may reduce the time needed for insertion of data.