OPAL-2194 - used OrientDB service to do a direct query rather than a costly iteration