display 4 tables, insert into 3 tables