Taking older revision of the sql dump

taking older revision of the sql and adding the trigger function &
trigger