Wire up the index to a DB Query