Queries on Current Project - Professional Plus

We have some queries that are used in separate gINT project using gINT Professional.

When the same queries are run when the projects have been upsized to Professional Plus then they don't run, despite all of the relevant tables and libraries existing.

Is there a way to only run the queries against the current project selected from the SQL database?  I can't seem to find anything in the Help Documentation to assist.

The queries that just look at a particular table run fine (such as Unique Geology Codes / Unique Legend Codes), but return everything from the database across multiple projects, which is not what we want.