Replaced deprecated mysql_real_escape_string