Correct Transaction object add to database when creating new transaction