add generate to routes
fix a typo
fix missing line
add "ID" column to table before generate contract