modify export_sql