'Remove empty jails jails and log files from database.'

def _cleanjails(self, cur):

    cur.execute('DELETE    FROM    jails    WHERE    enabled    =    0    AND    NOT    EXISTS(SELECT    *    FROM    bans    WHERE    jail    =    jails.name)    AND    NOT    EXISTS(SELECT    *    FROM    bips    WHERE    jail    =    jails.name)')
