add option to purge unreferenced collections from DB