Refactoring and testing nextId
Creating generateLanguage and generateLanguageFromSamples
Using nextId in insertGroup and insertSettlement
Testing multiple calls to insertGroup