Improve GroupNav database queries for slow requests