table: implement autoincrement
counter: useless now with autoincrement