Emulate autoIncrement and correct skip