minor updates, removing mysqli_close