Javascript Push Value Into Array If Not Exists Sql