index database into output directory