'Vacuum the database.'

def Vacuum(self):

    now = time.time()
    logging.debug('Vacuuming    database.')
    self.Execute('VACUUM')
    query = "INSERT    OR    REPLACE    INTO    statistics    VALUES('vacuum_time',    ?)"
    args = (str(int(now)),)
    self.Execute(query, args)
    try:
        self.conn.commit()
    except sqlite3.OperationalError:
        pass
