db: init tree