moved max_id into SQLiteIO and out of ObjProvider