Added $db -> disconnect();