add query method on salesdao and commoditydao