replace  for mysqli compaitbility