Add table attribute to Client
Add orderby and orderbyW functions
Cosmetic: update statement