support remote host for execute_cmd in db.py