added "use table" command, modified scan to use selected table (added
--table option) and added "query" command