# Failing to Setup InternalDB for Module in 7.9

**URL:** <https://forum.inductiveautomation.com/t/failing-to-setup-internaldb-for-module-in-7-9/39189>\
**Category:** Module Development\
**Tags:** ignition79\
**Created:** [September 29, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/failing-to-setup-internaldb-for-module-in-7-9/39189 "2020-09-29T16:23:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [September 29, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/failing-to-setup-internaldb-for-module-in-7-9/39189/1 "2020-09-29T16:23:13Z")

</div>

Hello,

I’m working on a new module, and I copy/pasted a bit of code I had to set up a settings page and internal DB record. I’m testing this on a Docker Image for 7.9.16.

I keep getting the following exception:  
`Caused by: org.sqlite.SQLiteException: [SQLITE_SCHEMA] The database schema changed (near "Settings": syntax error)`

My code to add the schema in the gateway hook is very simple:

```
private void verifySchema() {
    try {
        gatewayContext.getSchemaUpdater().updatePersistentRecords(CharmSettingsRecord.META);
    } catch (SQLException e) {
        logger.error("Error verifying internal database records for TamakiMES", e);
    }
}

```

and my record is defined as:

```
public class CharmSettingsRecord extends PersistentRecord {

    public static final RecordMeta<CharmSettingsRecord> META = new RecordMeta<>(CharmSettingsRecord.class, "Charm Server Settings")
            .setNounKey("CharmSettingsRecord.Noun").setNounPluralKey("CharmSettingsRecord.Noun.Plural");

    @Override
    public RecordMeta<?> getMeta() {
        return META;
    }

    public static final IdentityField id = new IdentityField(META);

    public Long getId() {
        return getLong(id);
    }

    public void setId(Long _id) {
        setLong(id, _id);
    }

}

```

Is there a way to debug this better?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 29, 2020, 4:24pm UTC](https://forum.inductiveautomation.com/t/failing-to-setup-internaldb-for-module-in-7-9/39189/2 "2020-09-29T16:24:31Z")

</div>

Try taking the spaces out of your table name (“Charm Server Settings”).

---

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [September 29, 2020, 5:02pm UTC](https://forum.inductiveautomation.com/t/failing-to-setup-internaldb-for-module-in-7-9/39189/3 "2020-09-29T17:02:50Z")

</div>

🤦‍♂️ Thanks Kevin
