How to Create Dynamic JSON File Using PHP MySql