I tend to use the DMG tables, but expand them to cover larger geographical areas - take the largest settlement in the area, generate the NPC lvls from that, and then spread them out over the whole area. I like PC classes to be something special.
High level commoners aren't really an issue, as I...