[NUCRDBMS-823] Extend SQLite autoincrement fix to any field and add
logging