Javascript Create Array If Not Exist Mysql