Create replace_sql.py

process the sql head and tail, replace the SPVMxx with my hostname