Refactor tablename to allow static methods
Add all() function