init tree db fix