You initialize the database in the Starter service module and access it from other activities. See below example:
IN SERVICE MODULE:
Sub Process_Globals
Public SQL0 As SQL
End Sub
Sub Service_Create
Dim TargetFolder As String
If File.ExternalWritable Then TargetFolder = File.DirRootExternal Else TargetFolder = File.DirInternal
File.MakeDir(TargetFolder, "products/data")
SQL0.Initialize(TargetFolder & "/products/data", "products.db", True)
End Sub
IN MAIN ACTIVITY OR OTHER ACTIVITY you access it with: Starter.SQL0
By the way, you seem to be very irritated with most of the answers you are getting ever since you rejoined the forum. Everyone is trying to help you free of charge. Have you wondered that some of your questions are not totally clear either. Cool it down.