extract auto-increment functions to its own class