Add alembic script to fix old git topics

Fixes #58.