Decouple pk generator

- Decouple primary key generator from its implementation.
- Modified 'Table naming guide' in 'CODING_STYLE.md' according to vote result.