refactor table ddl generators