Fix similar name verification. Add indexes to groups table [fixes #47424249] [fixes #47355181]