the issue was that [database] (the section marker) was missing from the template. so "connection" only works in that section. Has been fixed meanwhile