only send messages to players on the server
restructure groups query to hopefully fix integrity errors