add db to index