removed dyna session and transaction for session and withTransaction