Add auto_increment helper.
Improve documentation.