fix nested support in DataBase.copyFromDict