Fix SQL arguments.