@app.on_event('shutdown')
async def shutdown():
    global task_db
    del task_db
    task_db = None
@app.on_event('shutdown')
async def shutdown():
    global task_db
    del task_db
    task_db = None