make migrations work with existing database schemas

necessary since we switched from sqitch...