restore the old mysql connection so that mysql_real_escape_string() works