Update ext_tables.php

- Optimized usage and generation of main module group