'Fetch database version
:return: Integer inidicating current DB major version'

def check_db_minor_version(self):

    result = None
    try:
        if self.hasColumn(u'db_version', u'db_minor_version'):
            result = self.select(u'SELECT    db_minor_version    FROM    db_version')
    except Exception:
        return 0
    if result:
        return int(result[0]['db_minor_version'])
    else:
        return 0
