gen_table_elt now produces correct xml
change constraint types in xml to match SQL