fix to use "use DBNAME" and "show partitions TABLENAME" for hive versions 0.10 or earlier