A better check to see if the hive table exists.

Instead of trying to parse the output for a "table not found" we can just look at the database and see if the table exists by querying for all the tables with the exact name. Since two tables cannot have the same name in a database, this is guaranteed to return either 0 or 1 results.