Doping induced Mott collapse and the density wave instabilities in (Sr$_{1-x}$La$_x$)$_3$Ir$_2$O$_7$