Set all parameters at once instead of sending individual SET statements.

This simple patch is probably a better solution to SET statements. It fixes #29 as well.