JSON File and mySQL code