More sql param parsing fixes.