selects from a table, presents results in view