# Main Tab

![](/files/bV66cgZUHAhsDBXbIqYV)

## Main Tab

The Main Tab is used to manage connection information and credentials for Salesforce and the target CopyStorm database.

#### Prerequisite

It is a requirement that a CopyStorm database exist prior to running CS:Govern. If that is not the case then, upon switching tabs, CS:Govern will present the user with an error prompt and will then gracefully exit. Note that the CopyStorm database does not have to have data. The minimal requirement is that the Salesforce object tables, along with a handful of CopyStorm metadata tables exist. There are two strategies to consider here:

* Strategy 1: Execute CopyStorm with the “Schema Only” option set such that the Salesforce object tables will be created in the CopyStorm database, but no data will be copied. Then CS:Govern can be used to add field encryption rules to the data that will eventually be copied down from Salesforce upon subsequent executions of CopyStorm.
* Strategy 2: Execute CopyStorm with the “Schema Only” option unchecked such that the Salesforce object tables will be created in the CopyStorm database, AND data will be copied as well. Then CS:Govern can be used to add field encryption rules to that data, and the generated Custodians can be run to encrypt the data according to the CS:Govern rules that were created.

Regardless of the path taken, in either case a CopyStorm database will be present with the Salesforce object tables and the CopyStorm metadata tables. These are the necessary and sufficient tables required to successfully use CS:Govern.

![](/files/FCcFAHknvu0a3vN38uaH)

## Database

The Database option specifies the type of database where CS:Govern rules will be installed. If CS:Govern is not installed in the target directory, CS:Govern will automatically install itself on first database connection.

## Salesforce and Database Connection Parameters

CS:Govern connection parameters are identical to what is used for other CapStorm products. For details see the instructions for CopyStorm.

* [CopyStorm Salesforce and Database Connection Parameters](https://learn.capstorm.com/copystorm/readme/reference/main-tab)

## Save Credentials to a File

Though not required, you may save CS:Govern credential information to a file using the File/Save option.

![](/files/yGjhIKjN20uJ1rh3bL2O)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.capstorm.com/cs-govern/reference/main.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
