Fix migration of payouts

This fixes the migrations for payouts.
It creates new tables for Project Payout first so we can create new payout log tables.
Then it deletes those and migrate the old ones. 
This way it should work for existing data as well as newly created test database.
Why the cap? Just for testing?