update the SQLite handling