# Database Import Guide

## Database Overview

Powerful utility for managing, importing, and editing data lists that are used across modules. Below is a complete guide to help you navigate and utilize this tool effectively.

***

### 📥 Importing to Database

The tool allows you to import lists such as emails, proxies, or any other custom data into Glowie.

#### Steps to Import Data

1. **Launch ANY MODULE** within Glowie.
2. Navigate to the DATA button in the bottom-left corner.
3. Select the target group for your import, or create a new one by clicking the blue (+) icon..
4. Click the Convert menu in the top-left and select Import.
5. In the import dialog, click the folder icon on the bottom of the menu and select your .txt file.
   * Formatting Note: Ensure each entry in your file is on a separate line.
6. Click **OK** to begin the import.

***

### 🛠️ Editing a Database

While manual editing is not recommended unless you're comfortable with it, it is possible.

#### Accessing and Editing

* **Open any module** in Glowie.
* Click the **Data** button at the bottom left of the module window.
* This will launch the **Database Manager** where you can view and manage your lists.

#### Editing UI

* Use the **left-side panel** to select a group.
* You can manually **view**, **edit**, or **delete** entries by clicking the **pencil ✏️** or **X ❌** icons.

***

### ➕ Add & Manage Groups

* Use the **left bottom group icon** to open options:
  * `Add Group`
  * `Delete Selected`
  * `Select All`
  * `Select None`

***

### ➕ Add & Manage Items

* Use the **bottom right icon** in the data panel to access item options:
  * `Add Item`
  * `Delete Selected`
  * `Select All`
  * `Select None`
  * `Move Selected To Group`
  * `Copy Selected To Group`
  * `Delete From All Groups`

***

### 🗂️ File Menu Options

Under the **File** menu, you can:

* `Refresh` your data view
* `Delete All Data` from the current table

***

### 🔄 Convert Menu Options

Under the **Convert** menu:

* `Import Csv`
* `Export Csv`
* `Backup`
* `Restore`
* `Export Xls`

These tools allow you to import/export data and protect your database through backups.

***

### 📁 Import/Export CSV

Glowie lets you easily import or export your database using CSV files.

#### Importing a CSV

To import a list, you can create a `.csv` file using something simple like Notepad. Just type out your entries in this format:

```
email:password:additional1:additional2
```

Make sure each entry is on its own line, and the fields are separated by colons.

Once you have your file ready:

1. Open the **Convert** menu at the top.
2. Click **Import Csv**.
3. Select your file.
4. Use the drag-and-drop interface to match the fields (Email, Password, etc.).
5. Click OK to finish the import.

If you’re using Notepad, just save the file as `.csv` and make sure the formatting matches what Glowie expects.

#### Exporting a CSV

To export your data:

1. Select the group or data set you want to export.
2. Go to the **Convert** menu.
3. Click **Export Csv**.
4. Choose where you want to save the file.

The exported file will follow the same format as the import, so it’s easy to reuse or back up.

***

Let me know if you want to include an example screenshot too.

***

### 🔄 Backup & Restore

To protect your work, always **back up your database**:

1. Click on **Convert** in the top menu.
2. Choose **Backup** to export a complete copy of your database.
   * 🔒 Backups are saved to:

     ```
     C:\Users\YOURUSERNAME\AppData\Local\BasDatabases\Database.31838
     ```
3. To restore, select **Restore** and point to your backup file.
