implement UpdateManager.index_updated
initial refactor of Database