Closed the database connection upon logout.