Added debug_time to JSON output, fixed UTF-8 error in mysql connection.