Select transaction from db
Change schema a bit
Initial payout script