Fixes #1178 Can't browse users on pgsql
Changed code