'Creates a new database, called during initialisation.'

@commitandrollback
def createDb(self, cur):

    cur.executescript(Fail2BanDb._TABLE_fail2banDb)
    cur.execute('INSERT    INTO    fail2banDb(version)    VALUES(?)', (Fail2BanDb.__version__,))
    cur.executescript(Fail2BanDb._TABLE_jails)
    cur.executescript(Fail2BanDb._TABLE_logs)
    cur.executescript(Fail2BanDb._TABLE_bans)
    cur.executescript(Fail2BanDb._TABLE_bips)
    cur.execute('SELECT    version    FROM    fail2banDb    LIMIT    1')
    return cur.fetchone()[0]
