db: change print_returned_struct_members() to new API