added template sql connection