* Fixed a bug in gen_db_url caused by passing in a root as item.
* dupe_trees works now.