@app.on_event('startup')
async def startup():
    global task_db
    task_db = database_factory('mongo')
@app.on_event('startup')
async def startup():
    global task_db
    task_db = database_factory('mongo')