add LmnTreeDatabase struct and prototype tree_find_or_put function