correct group constant in models
check and if needed correct permalinks on dms startup
move permalink check/correct to own function