Introspect on DB to determine indexes for M-R

Previously, we trusted our metadata. Now, we look at the DB to see what indexes we have available.