Javascript Array Not Null Syntax In Sql