How to retrieve a List with all the entities in a database table