Check for db in index.