make autoupdate() work for sqlite3, since SHOW FIELDS FROM does not exists in sqlite.