Queries group database only when groupId is present on current user