change default template type to be db