allow passing JS array as a parameter instead of an array literal where SQL expects an array