Fixes bug 947949 Upgrade sqla and alembic