'Get a metastore table object'

def get_databases(self, pattern='*'):

    self.metastore._oprot.trans.open()
    dbs = self.metastore.get_databases(pattern)
    self.metastore._oprot.trans.close()
    return dbs
