SONAR-4603, SONAR-4589 Update project query in dryRun DB factory