Add phinx for migrations, fix category saving, and temp-fix tests