Update replace_sql.py

support process the .sql and .data file