update table def and new record class