public static String constructFatalError(int flags, ExecutableRecord newrec,
			ExecutableRecord orig) {
		String res = null;
		if ((flags & ExecutableRecord.METADATA_ARCH) != 0) {
			res = newrec.getNameExec() + " already ingested with different architecture field: " +
				orig.getArchitecture();
		}
		else if ((flags & ExecutableRecord.METADATA_COMP) != 0) {
			res = newrec.getNameExec() + " already ingested with different compiler field: " +
				orig.getNameCompiler();
		}
		else if ((flags & ExecutableRecord.METADATA_LIBR) != 0) {
			res = newrec.getNameExec() + " already ingested -- library field differs!!";
		}
		else if ((flags & ExecutableRecord.METADATA_REPO) != 0) {
			res = newrec.getNameExec() + " already ingested from a different repository: " +
				orig.getRepository();
		}
		return res;
	}
Send a query to the database.  The response is returned as a QueryResponseRecord.
If this is null, an error has occurred and an error message can be obtained from getLastError
@param query an object describing the query
@return the response object or null if there is an error
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/FunctionDatabase.java