an interface for binary search tree based database