Can the project and database be omitted in the NamedQueryTransaction.
https://docs.inductiveautomation.com/display/DOC80/system.db.beginNamedQueryTransaction
It does not state in the documentation.
java.lang.IllegalArgumentException: Project name can not be blank or missing.