Backward-compatible sqlite autoincrement