fixes bug 974726 - implement correlations using postgres
Merge pull request #1908 from rhelmer/bug974726-correlations-using-postgres

fixes bug 974726 - implement correlations using postgres