Fix migrations

Fixes #363

This PR rewrites the first three migrations to bring them in line with newer south versions.