Split migrations

Tested on both sqlite and postgres