Fixed a typo in the db function (listmodules) and changed the api call to use the new to_dict() functions, includding the deep option