create table and migrate