Add __destruct method to close the database connection