You misunderstand the point of escaping data for SQL usage. It doesn't permanently modify the data. Think of it as wrapping paper around a gift. You're making a gift of some data to the database, and such you wrap it up nicely (real_escape_string). Once it reaches the database, the DB server unwraps the gift (removes the escaping) and puts the 'gift' into its stash.
At no time would the backslashes you added EVER appear in the stored data, because they're removed by the DB server as it's doing the actual insertion. The escapes are there purely to ensure that whatever data you've inserted into the query do not "break" the SQL statement, e.g.
$name = "Miles O'Brien"; // <---note the '
$sql = "INSERT INTO people (names) VALUES ('$name')";
resulting sql:
INSERT INTO people (names) VALUES ('Miles O'Brien')
^--- oops, string terminated earlier, what's this "Brien" field/keyword?
with real_escape_string, your query looks like
... VALUES ('Miles O\'Brien')
^^---no longer an SQL string delimiter, treat it like any other char now.
mysqlseries of functions is a waste of time. Please switch tomysqlior PDO to save yourself all of this hassle.