Sql: fix leak on first alembic call
Merge pull request #780 from antoine-de/fix_alembic_leak

Sql: fix leak on first alembic call