Create main table.