I'm facing the same issue. I tried this script, but it doesn't work I can't access my database after exporting the project in Godot. Please tell me what to do!
var db
func _ready():
db = SQLite.new()
db.path = "res://DB/data_base_REAL.db"
var db_file_content : PackedByteArray = FileAccess.get_file_as_bytes("res://DB/data_base_REAL.db")
var file : FileAccess = FileAccess.open("user://data_base_REAL.db",FileAccess.WRITE)
file.store_buffer(db_file_content)
file.close()
db.open_db()
create_tables()
print("Base de données ouverte avec succès.")