def RESET(db, cache):
    """
    Truncates the entire database and clears the cache.
    
    This will commit to the database, all database information
    WILL be lost!
    """
    cache.ram.clear()
    cache.disk.clear()
    for table in db.tables:
        db[table].truncate('CASCADE')
    db.commit()
