Added support for local file metadata database. Now listing
of files does not take that long.