Remove db tasks (use alembic instead).
Use a script with an initialized application instance for WSGI servers.