triggers should be after insert or update
update type of mz_id to text from varchar
triggers need to return the record
normalize id takes a geometry too
add geometry simplification triggers