Add support for istemplate parameter when creating db