added mysqli_close at end