Fixed old calls using mysql_* instead of mysqli_*.