def _get_db_version(self):

        dbname = self._cfg.get('nipapd', 'db_name')
        self._execute("SELECT description FROM pg_shdescription JOIN pg_database ON objoid = pg_database.oid WHERE datname = '%s'" % dbname)
        comment = self._curs_pg.fetchone()
        if comment is None:
            raise NipapError("Could not find comment of psql database %s" % dbname)

        db_version = None
        m = re.match('NIPAP database - schema version: ([0-9]+)', comment[0])
        if m:
            db_version = int(m.group(1))
        else:
            raise NipapError("Could not match schema version database comment")

        return db_version




    #
    # VRF functions
    #
Return breakdown of amount contributed to each party.
dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/backend.py/Nipap._get_db_version--crossover with--dataset/ETHPy150Open sunlightlabs/python-transparencydata/influenceexplorer.py/Organization.party_breakdown