Update replace_sql.py

Add get hostname of the machine