Updating some stuff. Calling it a night have to get upserting working properly for trees and their nodes.