When a template database name contains invalid characters such as `-`,
the request to create a new database stops working.
To reduce this behavior, quotation marks have been added.
In the current approach, the connection logic is only triggered at the
moment of immediate need for connection.
We also get a single connection opening point.