fixed creating JSON report (+data insert into MySQL) from the user interface