Removed invalid Postgres queries in tests.