Make the controller access the DB and the view to loop over rows in the DB.