data/data: add IsReadonly method, to check for readonly database
api/auth/key: if database is readonly, ignore session expire time update errors