removing minus clause for Unreferenced File queries
Switching to setMaxRows(1)
Merge pull request #41 from pimotte/sqloptimizations-stable

Sqloptimizations stable