new method of listing files. updated database to provide more stats.