'Adds a jail to the database.
Parameters
jail : Jail
Jail to be added to the database.'

@commitandrollback
def addJail(self, cur, jail):

    cur.execute('INSERT    OR    IGNORE    INTO    jails(name,    enabled)    VALUES(?,    1)', (jail.name,))
    if (cur.rowcount <= 0):
        cur.execute('UPDATE    jails    SET    enabled    =    1    WHERE    name    =    ?    AND    enabled    !=    1', (jail.name,))
