Integration - BlobReportLimitingTest

This was failing with the postgres version. Modified the RankingQuery to
get it to pass.
Fixed integration tests for pgsql - ImportLogsTest.php

Fixed the code to make the integration tests pass for postgresql. ImportLogsTest.php
needed changes in the RankingQuery. Tests are now passing until OneVisitor_NoKeywordSpecifiedTest.php
for both mysql and postgresql.