record() may take a Connection instead of a target-string