DatabaseQuery.Database

From Xojo Documentation

Property (As Database )
aDatabaseQuery.Database = newDatabaseValue
or
DatabaseValue = aDatabaseQuery.Database

Supported for all project types and targets.

The database that will be queried.