Fetch all the matching map entries at once.

Sacrifice a small additional loop in code to get a single DB query.
parse error