Postgresql Table Check

This may be a case of my server setup process being different to everyone else, so feel free to ignore if noone else has a problem. By default new tables go into the public schema so this query:

```
$query = "SELECT count(*) FROM information_schema.tables WHERE table_schema = '$databasename'  AND table_name = '$name';";
```

Comes back empty. This change to check either the schema or catalog fixes the problem.