updated flat_table_initialization script