Improved unrated request fill

Incorporated William's sorting ideas and prioritizing into some of the
older, more efficient SQL.