close connection in index.php