[db] stop exposing the global index object