Refactoring 'all' method
Refactored ORM