list directories added to the db
sharesdb: properly remove files and dirs
do not segfault on d global remove missing argument
config: array should be a set (i.e. no duplicates)