Fixes #1178 Can't browse users on pgsql

Fixes #1178