Add support for istemplate parameter where creating db