The second closing bracket after "connlimit" should be moved after"istemplate ]"
The IS_TEMPLATE option can be prefixed by "WITH" when used alone.
i.e., create database newdb with is_template false;
David J.