replace  for mysqli compatibility