Neatened link script SQL param handling.

refs #5235