Control the structure of mySQL database using json file