fix late release of shared_ptr<TableData>
improved curses layout to show as many queries executing as possible