'type' repeated instead of being listed as 'prio'

In the view records_forward, 'type' was listed twice where
the second instance should be 'prio'.  This causes the view
to fail to be created, which corrupts the rest.