tool.selectFromtable prototype