sqlite error 'SqliteError: no such table:'

Hello! I am running into an error when attempting to access a sqlite file that is created in code using better-sqlite3.

Once the app is loaded, a function is called which uses a .db file to create a sqlite file. I have verified that the file is created and in the right location via SSH.

However, when trying to access a table in that database, I get the error ‘SqliteError: no such table’.

Any help would be greatly appreciated. Thank you!