async def METHOD_NAME(app: App):
    if get_config_from_app(app).no_check_db:
        return logger.info("Skipping database checks")
    db = app["db"]
    logger.info("Checking database")
    await migrate_status(db)
    # Make sure the indexes collection exists before later trying to set an compound
    # index on it.
    try:
        await db.motor_client.create_collection("indexes")
    except CollectionInvalid:
        pass