db_info: remove duplicate implementation of show_ranges()