modified create_external_table.q