...
If gSQL.ExecQuerySingleResult( _
"SELECT count(name) FROM sqlite_master WHERE type='table' AND name='" & TblScribblesName & "'") = 0 Then
'best mode for multithreaded apps.
gSQL.ExecNonQuery("PRAGMA journal_mode = wal")
' Add the columnname and type to the columns map
For i = 0 To TblScribblesColCount - 1
columns.Put(TblScribblesColNames(i), TblScribblesColTypes(i))
Next
DBUtils.createTable(gSQL, TblScribblesName, columns, TblScribblesColNames(0))
AppLog("> Created Table: " & TblScribblesName)
End If
...