Database with Threaded Binary Search Tree