it now adds txns and saves to db