Create stats for a dir of databases or a single database