Fixed #10164 -- Made AutoField increase monotonically on SQLite

Thanks malte for the report.