move project statement to later so earlier queries can use index
Merge pull request #554 from demaagdk/develop

move project statement to later so earlier queries can use index