Create postgres-extract-group-order.sql

grab count of unique links and then group/order them by headings