Fix reindex db