socket files. Use explicit queries to list users, tables and databases so we don't need to parse psql output. Tested with 8.2 - 9.2.