create table and controller.