We have to do a lot of hunting. Let $\angle ABD=a, \angle DBC=b, \angle ACB= c$.Let the foot of the median be $E$.
We see that
$$AB\cot c=2AB\tan a\\\implies \tan(a+b)=2\tan a\tag{I}$$This was written due to the fact that $\tan(90°-x)=\cot x$.
By angle bisector theorem,
$\frac {CE}{ED}=\frac{CB}{BD}$
Here, $$CE=AE=AB\tan a\\ED=AE\sin a=AB\tan a\sin a\\DB=AB\cos a \\CB=AB\sec (a+b)$$
Expression becomes $$\csc a=\sec (a+b) \sec a\\\implies \sec(a+b)=\cot a\tag{II}$$
Using $\tan^2 x+1=\sec^2 x$, we see $4\tan^2 a+1=\cot^2 a \tag{III}$
For acute angles, $$\tan a=\sqrt{\frac{\sqrt{17}-1}{8}}$$
It gets super easy after this.
First, we solve for $b$, using $(I)$. We get $$\tan b=\frac{\tan a}{1+2\tan^2 a}$$
and we know $\tan \frac x2=\frac{\sqrt{1+\tan^2 x}-1}{\tan x}$ for acute $x$, $$\implies \tan \frac c2 =\frac{\sqrt{1+\frac{1}{4\tan^2 a}} -1}{\frac{1}{2\tan a}}\\\implies \tan \frac c2 =\sqrt{1+4\tan^2 a}-2\tan a$$
Using $(III)$,
$$\tan \frac c2= \cot a -2 \tan a=\frac{1-2\tan^2 a}{\tan a}\\= \frac{(1-4\tan^4 a)\tan a}{(1+2\tan^2 a)\tan^2 a}=\frac{(\cot^2 a-4\tan^2 a)\tan a}{1+2\tan^ 2 a}=\frac {\tan a }{1+2\tan^ 2 a}=\tan b$$
Hence, it's proven that $\triangle CDB$ is isoceles