using pg and displaying group names when user logs in