Assume I am going to emulate auto-increment in MySQL/InnoDB
Conditions
sequence table need to have id as the autoincrement PK