Update postgres-extract-group-order.sql