Fix alembic script to work properly in offline mode.