get method for fetching all rows