Fix to be able to enable 'support_database true'

Squashed commit of the following:

commit 86e4416598ec38aef465dc324dc4ae59e96d168f
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 18:00:50 2014 +0900

    fix to support database on hiveserver2 executer

commit 0448f66669fce78a02394857ab5c6046f1cb5d68
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:49:42 2014 +0900

    remove test query w/ "show partitions database_name.table_name", which does not useful for many environments

commit 591b1626d44cacffae21ba0da778122456940ab9
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:47:56 2014 +0900

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

commit 6fff02c540f549d9d341eee0a60dacbdf18f94d8
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:41:16 2014 +0900

    fix to get dbname only

commit b3ea0bfc3d1638e9f27e310a758f7f025bef39e0
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:34:14 2014 +0900

    fix to ignore fetch result without any results

commit 8020186a55c0b34d00001c990def172ade42e874
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:04:17 2014 +0900

    add debug print

commit 07654279798f8b2d804cff7277b09135ff359b8c
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 17:04:05 2014 +0900

    add engine name

commit c36d3507e7bf75085b037f6f68f78e389acf9418
Author: TAGOMORI Satoshi <tagomoris@gmail.com>
Date:   Fri Jul 4 16:50:32 2014 +0900

    add scripts to check database handling on hiveserver2