How to get all rows of a table without doing a search