added a table query command