queries working with TableModel paradigm