A tree index framework for databases