def get_or_create_daily_reward_tx():
     todays_reward = Daily_reward.get_by_key_name(str(today))
     if not todays_reward:
         todays_reward = Daily_reward(key_name=str(today), date=today)
         todays_reward.put()
         coins_account = Account(parent=todays_reward, 
                                currency_type='coins', 
                                negative_balance_allowed=True)
         coins_account.put()
         todays_reward.coins_account = coins_account # redundant account again, is this really necessary?
         todays_reward.put()
     return todays_reward