Fixed a bug: cannot correctly detect the existence of a single table name

Also improve .get.res by passing warns into it for the possiblity of
error